package com.example.administrator.kaohedemo.Store;

import com.example.administrator.kaohedemo.Action.Action;
import com.example.administrator.kaohedemo.Dispatcher.Dispatcher;
import com.squareup.otto.Subscribe;

/**
 * Created by Administrator on 2016/6/21.
 */
public abstract class Store {

    static Dispatcher dispatcher=Dispatcher.getInstense();

    protected void UIChanged(){
        dispatcher.StoreChanged(changed());
    };

    public abstract void onAction(Action action);

    protected abstract StoreChanged changed();

    public interface StoreChanged{};
}
